package com.bcfrj.shop.service.impl;

import com.bcfrj.shop.mapper.AdvertMapper;
import com.bcfrj.shop.pojo.Advert;
import com.bcfrj.shop.service.AdvertService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import java.util.List;

@Service
public class AdvertServiceImpl implements AdvertService {
    @Autowired
    private AdvertMapper advertMapper;
    @Override
    public List<Advert> queryAdvertAll() {
        return advertMapper.queryAdvertAll();
    }

    @Override
    public Advert queryAdvertById(Integer Advert_id) {
        return advertMapper.queryAdvertById(Advert_id);
    }

    @Override
    public Integer insertAdvert(Advert advert) {
        return advertMapper.insertAdvert(advert);
    }

    @Override
    public Integer updateAdvert(Advert advert) {
        return advertMapper.updateAdvert(advert);
    }

    @Override
    public Integer deleteAdvert(Integer Advert_id) {
        return advertMapper.deleteAdvert(Advert_id);
    }
}
